package com.flowable.service;

import com.flowable.common.result.CommonResult;
import com.flowable.pojo.ProcessModel;

import java.io.IOException;

/**
 * 流程模型 接口
 */
public interface ProcModelService {

    /**
     * 转为bpmn.xml，并预览
     *
     * @param processModel json格式
     * @throws IOException
     */
    void json2bpmnxmlAndView(ProcessModel processModel) throws IOException;

    /**
     * 转为bpmn.xml，并上传到/resources目录下
     *
     * @param processModel
     * @return
     */
    CommonResult json2bpmnxmlAndUpload(ProcessModel processModel);
}
